package com.matt.service;

import com.matt.domain.news.SystemNotification;
import com.matt.foundation.query.NewsQuery;
import com.matt.foundation.vo.news.NewsVo;
import com.matt.foundation.vo.news.WebNewsVo;
import org.springframework.data.domain.Page;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/28
 * *******************************
 */
public interface SystemNotificationService {

    SystemNotification add(String name, String date, String text, String json);

    Page<SystemNotification> page(NewsQuery query);

    SystemNotification update(String id, String name, String date, String text, String json);

    NewsVo detail(String id);

    boolean delete(String id);

    WebNewsVo recentlyNews();
}
